<!DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css">
    <style>
        .swiper {
            width: 600px;
            height: 300px;
        }

        img {
            width: 600px;
            height: 300px;
        }
    </style>
</head>


<body>
    <div class="swiper swiper1">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="./img/巴巴托斯.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./mg/降魔大圣.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./img/提瓦特大合照.jpg" alt=""></div>
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>

        <!-- 如果需要导航按钮 -->
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>

        <!-- 如果需要滚动条 -->
        <div class="swiper-scrollbar"></div>
    </div>
    <div class="swiper swiper2">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="./img/璃月全家福.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./img/温蒂.png" alt=""></div>
            <div class="swiper-slide"><img src="./img/可莉游记7.jpg" alt=""></div>
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>

        <!-- 如果需要导航按钮 -->
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>

        <!-- 如果需要滚动条 -->
        <div class="swiper-scrollbar"></div>
    </div>
    <script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"> </script>
    <script>
        const mySwiper1 = new Swiper('.swiper1', {
            // direction: 'vertical', // 垂直切换选项
            loop: true, // 循环模式选项

            // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
            },

            // 如果需要前进后退按钮
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        })

        const mySwiper2 = new Swiper('.swiper2', {
            // direction: 'vertical', // 垂直切换选项
            loop: true, // 循环模式选项

            // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
            },

            // 如果需要前进后退按钮
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        })        
    </script>
</body>

</html>